﻿using System;

namespace Postnuclear
  {
  /// <summary>
  /// Event handler delegate which allows to use strong-typed event sender.
  /// </summary>
  /// <typeparam name="TSender">The type of the event sender.</typeparam>
  /// <typeparam name="TEventArgs">The type of the event arguments.</typeparam>
  /// <param name="sender">The event sender.</param>
  /// <param name="e">The <typeparamref name="TEventArgs"/> instance containing the event data.</param>
  public delegate void GenericEventHandler<in TSender, in TEventArgs>(TSender sender, TEventArgs e)
  where TEventArgs : EventArgs;
  }